/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package main;

import gameSpot.CrawlerGameSpot;
import gameSpot.ModeloReview;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;

/**
 *
 * @author Hector
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException {
        // TODO code application logic here
        
        CrawlerGameSpot test = new CrawlerGameSpot();
        //test.mostrarStack();
        ArrayList<ModeloReview> reviewsList = test.getReviewsList(1);
        
        for (Iterator<ModeloReview> it = reviewsList.iterator(); it.hasNext();) {
            System.out.println("//////////////////////////////////////////");
            ModeloReview modeloReview = it.next();
            modeloReview.print();
            System.out.println("//////////////////////////////////////////");
        }
        System.out.println("------------0------------");
        System.out.println("Numero de reviews: "+reviewsList.size());
        //System.out.println(reviewsList.get(0).getComments().size());
        //ModeloReview rev = new ModeloReview();
        //rev.setComments(null);
    }
}
